from django.shortcuts import render
from django.shortcuts import redirect
from django.conf import settings
from django.http import HttpResponse
from django.http import HttpResponseRedirect
from django.shortcuts import render


def view_home(req):
    is_login = False
    if not req.session.get('is_login', None):
        is_login = True
        # return render(req, 'index_nologin.html')
    return render(req, "index.html", {'is_login': is_login})
